package com.yx.backstage.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 系统通知表
 * </p>
 *
 * @author YangXiong
 * @since 2023-04-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_system_notice")
@ApiModel(value="SystemNotice对象", description="系统通知表")
public class SystemNotice implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "通知类型 1 全部用户 2 系统给用户 3 用户给系统")
    private Integer type;

    @ApiModelProperty(value = "给谁的通知，只有对用户才有")
    private Long toId;

    @ApiModelProperty(value = "谁发出的")
    private Long fromId;

    @ApiModelProperty(value = "通知内容/建议内容")
    private String context;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date modifyTime;

    @ApiModelProperty(value = "操作人id")
    private Long operatorId;

    @ApiModelProperty(value = "操作人姓名")
    private String operatorName;

    @ApiModelProperty(value = "是否删除 0 未删 1 已删")
    private Integer isDelete;

    private Long oldNoticeId;


}
